package com.navinfo.platform.trip.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 水温区间
 * @author machi
 * @data:  2018/6/21
 */
public enum RangeWaterTempEnum {
    RANGE_50(Range.lessThan(50)),
    RANGE_70(Range.closedOpen(50,70)),
    RANGE_80(Range.closedOpen(70,80)),
    RANGE_85(Range.closedOpen(80,85)),
    RANGE_90(Range.closedOpen(85,90)),
    RANGE_95(Range.closedOpen(90,95)),
    RANGE_100(Range.closedOpen(95,100)),
    RANGE_105(Range.closedOpen(100,105)),
    RANGE_110(Range.closedOpen(105,110)),
    RANGE_115(Range.closedOpen(110,115)),
    RANGE_120(Range.closedOpen(115,120)),
    RANGE_125(Range.closedOpen(120,125)),
    RANGE_130(Range.closedOpen(125,130)),
    RANGE_135(Range.closedOpen(130,135)),
    RANGE_140(Range.closedOpen(135,140)),
    RANGE_145(Range.closedOpen(140,145)),
    RANGE_150(Range.closedOpen(145,150)),
    RANGE_OVER_150(Range.closedOpen(150,Integer.MAX_VALUE)),
    RANGE_VALID(Range.closed(0, 200)) ;

    private Range<Integer> range;

    RangeWaterTempEnum(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }
}
